import request from '@/utils/request'

// 查询专家库分页
export function pageExpert(query) {
  return request({
    url: '/base/expert/page',
    method: 'get',
    params: query
  })
}

// 查询专家库列表
export function listExpert(query) {
  return request({
    url: '/base/expert/list',
    method: 'get',
    params: query
  })
}

// 查询专家库详细
export function getExpert(id) {
  return request({
    url: '/base/expert/info/' + id,
    method: 'get'
  })
}

// 新增专家库
export function addExpert(data) {
  return request({
    url: '/base/expert',
    method: 'post',
    data: data
  })
}

// 修改专家库
export function updateExpert(data) {
  return request({
    url: '/base/expert',
    method: 'put',
    data: data
  })
}

// 删除专家库
export function delExpert(data) {
  return request({
    url: '/base/expert/remove/batch',
    method: 'delete',
    data
  })
}

// 导出专家库
export function exportExpert(query) {
  return request({
    url: '/base/expert/export',
    method: 'get',
    params: query
  })
}

// 下载模板专家库
export function downImportTemplate() {
  return request({
    url: '/base/expert/importTemplate',
    method: 'get'
  })
}